export const routes = [
  {
    path: '/404',
    name: 'nopage',
    component: resolve => require(['@/view/error/404'], resolve)
  },
  {
    path: '*',
    name: '404',
    redirect: '/layout'
  },
  {
    path: '/layout',
    name: 'layout',
    component: resolve => require(['@/view/layout'], resolve),
    redirect: "/staffList",
    children: [
      {
        path: '/staffList',
        name: 'staffList',
        component: resolve => require(['@/view/staffManage/staffList'], resolve),
      }
    ]
  },
  {
    path: '/test',
    name: 'test',
    component: resolve => require(['@/view/test'], resolve),
  },
]
